#!/bin/bash

#./cedb.sh exec ./list_cedb_event.sql > RST_CEDB_1

cat RST_CEDB_1 | \
  grep '|' | \
  grep -v 'SQL> set COLSEP' | \
  grep -v '\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-' | \
  awk '{gsub("\t", "", $0); gsub("  ", "", $0); print $0;}' \
  > RST_CEDB_2
